@layout("/common/_container.html"){
<link rel="stylesheet" href="${ctxPath}/static/css/plugins/combo.select.css">
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="contente">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="name" name="预案名称" underline="true"/>
                    <#select id="type" name="类型" underline="true"   onchangeFun="CounterplanInfoDlgEdit.changeType()">
                        <option value>请选择</option>
                        @for(counterplantype in counterplantypes){
                        @if(isNotEmpty(value) && value == counterplantype.type){
                        <option value="${counterplantype.type}" selected="selected">${counterplantype.type}</option>
                        @}else{
                        <option value="${counterplantype.type}" >${counterplantype.type}</option>
                        @}
                        @}
                    </#select>
                    <#input id="accidentTypeName" name="事故类型"
                            hidden="accidentTypeId"
                            clickFun="CounterplanInfoDlgEdit.showAccidentTypeSelectTree(); return false;"
                            onkeyup="CounterplanInfoDlgEdit.AutoMatchAccidentTypeSelectTree(this); return false"
                            style="background-color: #ffffff !important;"
                            selectFlag="true" selectId="accidentTypeTreeDiv" selectTreeId="accidentTypeTree" selectStyle="width:244px !important;"/>

                    <#button btnCss="info" name="通讯录" id="contact" icon=""
                    clickFun="CounterplanInfoDlgEdit.contactSel()"/>

                    <#button btnCss="info" name="处置流程" id="contact" icon=""
                    clickFun="CounterplanInfoDlgEdit.processSel()"/>

                    <#button btnCss="info" name="法律法规" id="contact" icon=""
                    clickFun="CounterplanInfoDlgEdit.lawSel()"/>

                    <#button btnCss="info" name="应急资源" id="contact" icon=""
                            clickFun="CounterplanInfoDlgEdit.resourceSel()"/>
                    <#button btnCss="info" name="匹配预案模板" id="contact" icon=""
                            clickFun="CounterplanInfoDlgEdit.counterplanTemplateMate()"/>

                </div>

                <div class="col-sm-6">
                    <#selectDict id="level" name="响应等级"  underline="true" code="responseLevel"/>

                    <#input id="stationSel" name="地点" underline="true"
                            hidden="stationId"
                            clickFun="CounterplanInfoDlgEdit.showStationSelectTree(); return false;"
                            onkeyup="CounterplanInfoDlgEdit.AutoMatchStationSelectTree(this); return false"
                            style="background-color: #ffffff !important;"
                            selectFlag="true" selectId="stationTreeDiv" selectTreeId="stationTree" selectStyle="width:244px !important;"/>

                    <#input id="accidentMain" name="岗位" underline="true"
                            readonly="readonly"
                            clickFun="CounterplanInfoDlgEdit.showPositionStatementSelectTree(); return false;"
                            style="background-color: #ffffff !important;"
                            selectFlag="true" selectId="parentTreeDiv" selectTreeId="parentTree" selectStyle="width:244px !important;"/>

                </div>
            </div>

            <#ue id="content" />

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check"
                    clickFun="CounterplanInfoDlgEdit.addSubmit()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/yjya/counterplan/counterplan_info_add_edit.js"></script>
<script src="${ctxPath}/static/js/plugins/jquery.combo.select.js"></script>
@}
